import request from "@/utils/request";

const BASE_URL = "/api/v1";

const transactionApi = {
  getList(data: any) {
    return request({
      url: `${BASE_URL}/transactionRecords/page`,
      method: "post",
      data,
    });
  },

  getDetail(id: number) {
    return request({
      url: `${BASE_URL}/transactionRecords/detail/${id}`,
      method: "get",
    });
  },
  undataInfo(data: any) {
    return request({
      url: `${BASE_URL}/company/mall/detail/updateSort`,
      method: "post",
      data,
    });
  },
};

export default transactionApi;
